<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>库存管理系统</title>
	</head>
<p> <style type="text/css">


*{margin:0;padding:0;border:0;}
body {
 font-family: arial, 宋体, serif;
 font-size:12px;
}
#nav {
 width:180px;
    line-height: 24px; 
 list-style-type: none;
 text-align:left;
    /*定义整个ul菜单的行高和背景色*/
} 
/*==================一级目录===================*/
#nav a {
 width: 160px; 
 display: block;
 padding-left:20px;
 /*Width(一定要)，否则下面的Li会变形*/
}
#nav li {
 background:#A6D4F5; /*一级目录的背景色*/
 border-bottom:#FFF 1px solid; /*下面的一条白边*/
 float:left;
 /*float：left,本不应该设置，但由于在Firefox不能正常显示  继承Nav的width,限制宽度，li自动向下延伸*/
}
#nav li a:hover{
 background:#A6D4F5; /*一级目录onMouseOver显示的背景色*/
}
#nav a:link  {
 color:#666; text-decoration:none;
}
#nav a:visited  {
 color:#666;text-decoration:none;
}
#nav a:hover  {
 color:#FFF;text-decoration:none;font-weight:bold;
}
/*==================二级目录===================*/
#nav li ul {
 list-style:none;
 text-align:left;
}
#nav li ul li{ 
 background: #E6EFF9; /*二级目录的背景色*/
}
#nav li ul a{
         padding-left:20px;
         width:160px;
 /* padding-left二级目录中文字向右移动，但Width必须重新设置=(总宽度-padding-left)*/
}
/*下面是二级目录的链接样式*/
#nav li ul a:link  {
 color:#666; text-decoration:none;
}
#nav li ul a:visited  {
 color:#666;text-decoration:none;
}
#nav li ul a:hover {
 color:#F3F3F3;
 text-decoration:none;
 font-weight:normal;
 background:#CC0000;
 /* 二级onmouseover的字体颜色、背景色*/
}
/*==============================*/
#nav li:hover ul {
 left: auto;
}
#nav li.sfhover ul {
 left: auto;
}
#content {
 clear: left; 
}
#nav ul.collapsed {
 display: none;
}

#PARENT{
 padding-top:1px;
 width:300px;
 padding-left:20px;
}</style></p>
<span></span>
<script>
	Date.prototype.toLocaleString = function() {
          return this.getFullYear() + "" + ((this.getMonth() + 1)<10?("0"+(this.getMonth() + 1)):(""+(this.getMonth() + 1))) + "" + ((this.getDate() )<10?("0"+(this.getDate())):(""+(this.getDate())))  + "";
    };
	function downFile(){ 
		window.location.href="Backups/"+new Date().toLocaleString()+".sql";
	}
</script>
<body style="overflow-x:hidden;">
<div id="PARENT">
<ul id="nav">
    <li><a onclick="DoMenu('ChildMenu1')" href="#Menu=ChildMenu1">资源整理</a>
    <ul id="ChildMenu1" class="expanded">
        <li><a th:href="@{/stock/}"  target="indexBody">库存管理</a></li>
        <li><a th:href="@{/model/}"  target="indexBody">网关型号管理</a></li>
        <li><a th:href="@{/shunt/}"  target="indexBody">分流电路管理</a></li>
        <li><a th:href="@{/resource/}"  target="indexBody">资源管理</a></li>
        <li><a th:href="@{/account/}"  target="indexBody">客户管理</a></li>
        <li><a th:href="@{/distributor/}"  target="indexBody">分销商管理</a></li>
        <li><a th:href="@{/operator/}"  target="indexBody">运营商管理</a></li>
        <li><a th:href="@{/online/}"  target="indexBody">实时在线盒子</a></li>
        <li><a th:href="@{/StockManager}"  target="indexBody">数据加密备份</a></li>
    </ul>
    </li>
    
</ul>
</div>
</body>
<script type=text/javascript>
var LastLeftID = "";
var downA;
function menuFix() {
 var obj = document.getElementById("nav").getElementsByTagName("li");
 for (var i=0; i<obj.length; i++) {
  obj[i].onmouseover=function() {
  // this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  obj[i].onmousedown=function() {
  	
	  if(this.innerHTML.indexOf("DoMenu")<=0){
	  	if(downA){
	  		downA.style.backgroundColor="#E6EFF9";
	  	}
	  	 downA=this;
	  	 this.style.backgroundColor="#CC0000";
	  }
   //this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  obj[i].onMouseUp=function() {
   //this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  obj[i].onmouseout=function() {
  // this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), "");
  }
 }
}
function DoMenu(emid)
{
 var obj = document.getElementById(emid); 
 obj.className = (obj.className.toLowerCase() == "expanded"?"collapsed":"expanded");
 
 LastLeftID = emid;
}
function GetMenuID()
{
 var MenuID="";
 var _paramStr = new String(window.location.href);
 var _sharpPos = _paramStr.indexOf("#");
 
 if (_sharpPos >= 0 && _sharpPos < _paramStr.length - 1)
 {
  _paramStr = _paramStr.substring(_sharpPos + 1, _paramStr.length);
 }
 else
 {
  _paramStr = "";
 }
 
 if (_paramStr.length > 0)
 {
  var _paramArr = _paramStr.split("&");
  if (_paramArr.length>0)
  {
   var _paramKeyVal = _paramArr[0].split("=");
   if (_paramKeyVal.length>0)
   {
    MenuID = _paramKeyVal[1];
   }
  }
 }
 
 if(MenuID!="")
 {
  DoMenu(MenuID)
 }
}
GetMenuID(); //这两个function的顺序要注意一下，不然在Firefox里GetMenuID()不起效果
menuFix();
</script>
</html>